package com.one.square.user.interfaces.service.service;

import com.one.square.core.domain.Result;
import com.one.square.core.entity.SysMenu;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author cwm
 * @Description 用户菜单接口
 * @date 2021/10/21 上午11:38
 * @Version 1.0
 */
@RequestMapping("/sys/menu")
public interface SysMenuInterface {
    /**
     * 角色菜单列表
     * @param roleCodes
     */
    @GetMapping(value = "/menus/roleCodes")
    Result<List<SysMenu>> findByRoleCodes(@RequestParam("roleCodes") List<String> roleCodes);
}
